﻿using System.Linq;
namespace MMS.Respository
{


    public partial class SalesPromotion : BaseRespository<Model.SalesPromotion>, IRespository.ISalesPromotion
    {
        public new void Modify(Model.SalesPromotion Model, params string[] updateProperties)
        {
            var model = EFFatory.db.Set<Model.SalesPromotion>().Where(o => o.SId == Model.SId).FirstOrDefault();
            model.SId = Model.SId;
            model.SMinMoney = Model.SMinMoney;
            model.SMaxMoney = Model.SMaxMoney;
            model.SIntegral = Model.SIntegral;
            model.SBeginTime = Model.SBeginTime;
            model.SEndTime = Model.SEndTime;
            model.SPlace = Model.SPlace;
            model.SRemark = Model.SRemark;

            EFFatory.db.SaveChanges();


        }
    }
}